cc.Class({
    extends: cc.Component,

    properties: {
    },
    doWink: function() {
        var scale1 = cc.scaleTo(0.8, 0.9)
        var scale2 = cc.scaleTo(0.8, 1)
        var anim = cc.repeatForever(cc.sequence(scale1, scale2))
        this.startBtn.runAction(anim)
    },
    startGame: function() {
        cc.director.loadScene('MainScene')
    },
    // LIFE-CYCLE CALLBACKS:

    onLoad: function() {
        // 获取开始按钮
        this.startBtn = cc.find('Welcome/startBtn')
        this.doWink()
    }
    // update (dt) {},
});
